#include "defines.h"


EBaseError log_init(BaseLog* log);
void log_fini(BaseLog* log);

EBaseError log(EBaseLogLevel level, uchar8* msg);
EBaseError log_error(uchar8* format, ...);
EBaseError log_warn(uchar8* format, ...);
EBaseError log_info(uchar8* format, ...);
EBaseError log_debug(uchar8* format, ...);

#define DEBUG(format,...) log_debug("File: %s, Line: %05d: " ## format, \
    __FILE__, __LINE__, ##__VA_ARGS__)    
